import api from '../utils/apiUtils';

// 规格列表
export function getMerchant (params) {
  return api.get (`/shop/spec/page`, params);
}

// 新增规格
export function addMerchant (params) {
  return api.post (`/shop/spec/create`, params);
}

// 编辑规格
export function editMerchant (id, params) {
  return api.put (`/shop/spec/${id}`, params);
}

//删除规格
export function delMerchant (params) {
  return api.delete (`/shop/spec`, params);
}

//规格详情
export function getMerchantDetail (id) {
  return api.get (`shop/spec/${id}`);
}

// 角色列表
export function getRoles (params) {
  return api.get (`/shop/roles/page`, params);
}
